﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="WFExtended.Samples.Activities.TwitterGeoSample"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:p="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:wfs="clr-namespace:WFExtended.Framework.ServiceModel;assembly=WFExtended"
 xmlns:wt="clr-namespace:WFExtended.Twitter;assembly=WFExtended.Twitter"
 xmlns:wta="clr-namespace:WFExtended.Twitter.Activities;assembly=WFExtended.Twitter"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="Tokens" Type="InArgument(wt:OAuthTokens)" />
    <x:Property Name="UserAccessTokenSecret" Type="InArgument(x:String)" />
    <x:Property Name="UserAccessToken" Type="InArgument(x:String)" />
  </x:Members>
  <sap2010:ExpressionActivityEditor.ExpressionActivityEditor>C#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
  <sap2010:WorkflowViewState.IdRef>WFExtended.Samples.Activities.TwitterGeoSample_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Text</x:String>
      <x:String>WFExtended.Twitter</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Drawing</AssemblyReference>
      <AssemblyReference>System.Runtime.DurableInstancing</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Discovery</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>WFExtended.Twitter</AssemblyReference>
      <AssemblyReference>WFExtended</AssemblyReference>
      <AssemblyReference>System.Web</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>WFExtended.Samples</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <wta:TwitterProxy RetryCount="{x:Null}" RetryDelay="{x:Null}" EnablePersistence="True" EnableRateLimitAutoRetry="True" sap2010:WorkflowViewState.IdRef="TwitterProxy_1" UseSsl="True">
    <wta:TwitterProxy.ApplicationAccessToken>
      <InArgument x:TypeArguments="x:String">
        <mca:CSharpValue x:TypeArguments="x:String">Tokens.ApplicationAccessToken</mca:CSharpValue>
      </InArgument>
    </wta:TwitterProxy.ApplicationAccessToken>
    <wta:TwitterProxy.ApplicationAccessTokenSecret>
      <InArgument x:TypeArguments="x:String">
        <mca:CSharpValue x:TypeArguments="x:String">Tokens.ApplicationAccessTokenSecret</mca:CSharpValue>
      </InArgument>
    </wta:TwitterProxy.ApplicationAccessTokenSecret>
    <wta:TwitterProxy.ConsumerKey>
      <InArgument x:TypeArguments="x:String">
        <mca:CSharpValue x:TypeArguments="x:String">Tokens.ConsumerKey</mca:CSharpValue>
      </InArgument>
    </wta:TwitterProxy.ConsumerKey>
    <wta:TwitterProxy.ConsumerSecret>
      <InArgument x:TypeArguments="x:String">
        <mca:CSharpValue x:TypeArguments="x:String">Tokens.ConsumerSecret</mca:CSharpValue>
      </InArgument>
    </wta:TwitterProxy.ConsumerSecret>
    <wta:TwitterProxy.EndPointBehaviors>
      <InArgument x:TypeArguments="scg:List(p:IEndpointBehavior)" />
    </wta:TwitterProxy.EndPointBehaviors>
    <wta:TwitterProxy.Headers>
      <InArgument x:TypeArguments="scg:List(p:AddressHeader)" />
    </wta:TwitterProxy.Headers>
    <wta:TwitterProxy.Proxy>
      <InArgument x:TypeArguments="wfs:WcfProxy(wt:ITwitterApi)" />
    </wta:TwitterProxy.Proxy>
    <wta:TwitterProxy.RateLimitAutoRetryDelay>
      <InArgument x:TypeArguments="x:TimeSpan">
        <mca:CSharpValue x:TypeArguments="x:TimeSpan">new TimeSpan(0,2,0)</mca:CSharpValue>
      </InArgument>
    </wta:TwitterProxy.RateLimitAutoRetryDelay>
    <ActivityAction x:TypeArguments="wfs:WcfProxy(wt:ITwitterApi)">
      <ActivityAction.Argument>
        <DelegateInArgument x:TypeArguments="wfs:WcfProxy(wt:ITwitterApi)" Name="twitterProxy" />
      </ActivityAction.Argument>
      <wta:TwitterUserContext sap2010:WorkflowViewState.IdRef="TwitterUserContext_1">
        <wta:TwitterUserContext.UserAccessToken>
          <InArgument x:TypeArguments="x:String">
            <mca:CSharpValue x:TypeArguments="x:String">UserAccessToken</mca:CSharpValue>
          </InArgument>
        </wta:TwitterUserContext.UserAccessToken>
        <wta:TwitterUserContext.UserAccessTokenSecret>
          <InArgument x:TypeArguments="x:String">
            <mca:CSharpValue x:TypeArguments="x:String">UserAccessTokenSecret</mca:CSharpValue>
          </InArgument>
        </wta:TwitterUserContext.UserAccessTokenSecret>
        <ActivityAction>
          <Sequence sap2010:WorkflowViewState.IdRef="Sequence_1">
            <Sequence.Variables>
              <Variable x:TypeArguments="wt:GeoSearchResult" Name="result" />
              <Variable x:TypeArguments="wt:Place" Name="place" />
            </Sequence.Variables>
            <wta:SearchGeoPlaces Accuracy="{x:Null}" ContainedWithin="{x:Null}" IP="{x:Null}" StreetAddress="{x:Null}" Granularity="poi" sap2010:WorkflowViewState.IdRef="SearchGeoPlaces_1" Latitude="37.7821120598956" Longitude="-122.400612831116" OperationName="SearchGeo" Query="Paris">
              <wta:SearchGeoPlaces.MaxResults>
                <InArgument x:TypeArguments="x:Int32">
                  <mca:CSharpValue x:TypeArguments="x:Int32">20</mca:CSharpValue>
                </InArgument>
              </wta:SearchGeoPlaces.MaxResults>
              <wta:SearchGeoPlaces.Parameters>
                <scg:Dictionary x:TypeArguments="x:String, InArgument" />
              </wta:SearchGeoPlaces.Parameters>
              <wta:SearchGeoPlaces.Proxy>
                <InArgument x:TypeArguments="wfs:AWcfProxy">
                  <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">twitterProxy</mca:CSharpValue>
                </InArgument>
              </wta:SearchGeoPlaces.Proxy>
              <wta:SearchGeoPlaces.Result>
                <OutArgument x:TypeArguments="wt:GeoSearchResult">
                  <mca:CSharpReference x:TypeArguments="wt:GeoSearchResult">result</mca:CSharpReference>
                </OutArgument>
              </wta:SearchGeoPlaces.Result>
            </wta:SearchGeoPlaces>
            <ForEach x:TypeArguments="wt:Place" DisplayName="ForEach&lt;Place&gt;" sap2010:WorkflowViewState.IdRef="ForEach`1_1">
              <ForEach.Values>
                <InArgument x:TypeArguments="scg:IEnumerable(wt:Place)">
                  <mca:CSharpValue x:TypeArguments="scg:IEnumerable(wt:Place)">result.Result.Places</mca:CSharpValue>
                </InArgument>
              </ForEach.Values>
              <ActivityAction x:TypeArguments="wt:Place">
                <ActivityAction.Argument>
                  <DelegateInArgument x:TypeArguments="wt:Place" Name="item" />
                </ActivityAction.Argument>
                <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_1">
                  <InArgument x:TypeArguments="x:String">
                    <mca:CSharpValue x:TypeArguments="x:String">item.Name</mca:CSharpValue>
                  </InArgument>
                </WriteLine>
              </ActivityAction>
            </ForEach>
            <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_2" Text="##############" />
            <wta:GetPlace sap2010:WorkflowViewState.IdRef="GetPlace_1" OperationName="GetPlace">
              <wta:GetPlace.Parameters>
                <scg:Dictionary x:TypeArguments="x:String, InArgument" />
              </wta:GetPlace.Parameters>
              <wta:GetPlace.PlaceID>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">result.Result.Places[0].ID</mca:CSharpValue>
                </InArgument>
              </wta:GetPlace.PlaceID>
              <wta:GetPlace.Proxy>
                <InArgument x:TypeArguments="wfs:AWcfProxy">
                  <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">twitterProxy</mca:CSharpValue>
                </InArgument>
              </wta:GetPlace.Proxy>
              <wta:GetPlace.Result>
                <OutArgument x:TypeArguments="wt:Place">
                  <mca:CSharpReference x:TypeArguments="wt:Place">place</mca:CSharpReference>
                </OutArgument>
              </wta:GetPlace.Result>
            </wta:GetPlace>
            <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_3">
              <InArgument x:TypeArguments="x:String">
                <mca:CSharpValue x:TypeArguments="x:String">place.Name</mca:CSharpValue>
              </InArgument>
            </WriteLine>
            <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_4" Text="##############" />
            <wta:GetSimilarPlaces ContainedWithin="{x:Null}" StreetAddress="{x:Null}" sap2010:WorkflowViewState.IdRef="GetSimilarPlaces_1" Name="Klout HQ" OperationName="GetSimilarPlaces">
              <wta:GetSimilarPlaces.Latitude>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">"37.7821120598956"</mca:CSharpValue>
                </InArgument>
              </wta:GetSimilarPlaces.Latitude>
              <wta:GetSimilarPlaces.Longitude>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">"-122.400612831116"</mca:CSharpValue>
                </InArgument>
              </wta:GetSimilarPlaces.Longitude>
              <wta:GetSimilarPlaces.Parameters>
                <scg:Dictionary x:TypeArguments="x:String, InArgument" />
              </wta:GetSimilarPlaces.Parameters>
              <wta:GetSimilarPlaces.Proxy>
                <InArgument x:TypeArguments="wfs:AWcfProxy">
                  <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">twitterProxy</mca:CSharpValue>
                </InArgument>
              </wta:GetSimilarPlaces.Proxy>
              <wta:GetSimilarPlaces.Result>
                <OutArgument x:TypeArguments="wt:GeoSearchResult">
                  <mca:CSharpReference x:TypeArguments="wt:GeoSearchResult">result</mca:CSharpReference>
                </OutArgument>
              </wta:GetSimilarPlaces.Result>
            </wta:GetSimilarPlaces>
            <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_5">
              <InArgument x:TypeArguments="x:String">
                <mca:CSharpValue x:TypeArguments="x:String">result.Result.Places[0].Name</mca:CSharpValue>
              </InArgument>
            </WriteLine>
            <wta:AddGeoPlace StreetAddress="{x:Null}" sap2010:WorkflowViewState.IdRef="AddGeoPlace_1" Name="Klout HQ" OperationName="AddGeoPlace">
              <wta:AddGeoPlace.ContainedWithin>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">result.Result.Places[0].ContainedWithin[0].ID</mca:CSharpValue>
                </InArgument>
              </wta:AddGeoPlace.ContainedWithin>
              <wta:AddGeoPlace.Latitude>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">"37.7821120598956"</mca:CSharpValue>
                </InArgument>
              </wta:AddGeoPlace.Latitude>
              <wta:AddGeoPlace.Longitude>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">"-122.400612831116"</mca:CSharpValue>
                </InArgument>
              </wta:AddGeoPlace.Longitude>
              <wta:AddGeoPlace.Parameters>
                <scg:Dictionary x:TypeArguments="x:String, InArgument" />
              </wta:AddGeoPlace.Parameters>
              <wta:AddGeoPlace.Proxy>
                <InArgument x:TypeArguments="wfs:AWcfProxy">
                  <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">twitterProxy</mca:CSharpValue>
                </InArgument>
              </wta:AddGeoPlace.Proxy>
              <wta:AddGeoPlace.Result>
                <OutArgument x:TypeArguments="wt:Place">
                  <mca:CSharpReference x:TypeArguments="wt:Place">place</mca:CSharpReference>
                </OutArgument>
              </wta:AddGeoPlace.Result>
              <wta:AddGeoPlace.Token>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">result.Result.Token</mca:CSharpValue>
                </InArgument>
              </wta:AddGeoPlace.Token>
            </wta:AddGeoPlace>
          </Sequence>
        </ActivityAction>
      </wta:TwitterUserContext>
    </ActivityAction>
    <sads:DebugSymbol.Symbol>d1BFOlxQcm9qZWN0c1xXRkVcTWFpblxTb3VyY2VzXFdGRXh0ZW5kZWQuU2FtcGxlc1xBY3Rpdml0aWVzXFR3aXR0ZXJHZW9TYW1wbGUueGFtbDA4A/YBFgIBATsJO2QDAb0BQAlAagMBuQFFCUVZAwG1AVgJWFwDAbEBSglKXAMBrQFfB/MBIAIBAmINYloDAagBZw1nYAMBowFrC/EBFgIBA3ANgwEjAwGJAYQBDZQBFwIBeJUBDZUBXgIBdpYBDakBHAIBYKoBDa4BGQIBWK8BDa8BXgIBVrABDcgBJAIBOMkBDc0BGQIBMM4BDfABHwIBBHsTe2IDAZwBcIQBcIkBAwGbAYABE4ABaQMBlAFwmAJwnwIDAZMBcMcBcNkBAwGSAXDkAXD3AQMBkQFzE3NSAwGKAYcBE4cBdgMBggGOARGSAR0CAXmVAUuVAVsCAXehAROhAWICAW+mAROmAV4CAWicAROcAWsCAWGsARGsAVkCAVmvAUuvAVsCAVfAARPAAWICAU/FARPFAWkCAUizAROzAWYCAUG4ARO4AWcCATqwAZEBsAGbAQIBOcsBEcsBawIBMdEBE9EBfgIBKeMBE+MBYgIBIugBE+gBXgIBG+0BE+0BZAIBFNYBE9YBZgIBDdsBE9sBZwIBBs4BbM4BdgIBBZABFZABXAIBeg==</sads:DebugSymbol.Symbol>
  </wta:TwitterProxy>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="SearchGeoPlaces_1" sap:VirtualizedContainerService.HintSize="287,72" />
      <sap2010:ViewStateData Id="WriteLine_1" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="ForEach`1_1" sap:VirtualizedContainerService.HintSize="287,212" />
      <sap2010:ViewStateData Id="WriteLine_2" sap:VirtualizedContainerService.HintSize="287,62" />
      <sap2010:ViewStateData Id="GetPlace_1" sap:VirtualizedContainerService.HintSize="287,108" />
      <sap2010:ViewStateData Id="WriteLine_3" sap:VirtualizedContainerService.HintSize="287,62" />
      <sap2010:ViewStateData Id="WriteLine_4" sap:VirtualizedContainerService.HintSize="287,62" />
      <sap2010:ViewStateData Id="GetSimilarPlaces_1" sap:VirtualizedContainerService.HintSize="287,180" />
      <sap2010:ViewStateData Id="WriteLine_5" sap:VirtualizedContainerService.HintSize="287,62" />
      <sap2010:ViewStateData Id="AddGeoPlace_1" sap:VirtualizedContainerService.HintSize="287,72" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="309,1336">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TwitterUserContext_1" sap:VirtualizedContainerService.HintSize="339,1460" />
      <sap2010:ViewStateData Id="TwitterProxy_1" sap:VirtualizedContainerService.HintSize="369,1584" />
      <sap2010:ViewStateData Id="WFExtended.Samples.Activities.TwitterGeoSample_1" sap:VirtualizedContainerService.HintSize="409,1664" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>